import request from '@/utils/request'

// 登录
export function login(data) {
  return request({
    url: '/vue-admin-template/user/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/admin/info',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })

} 
export function getCaptcha() {
  return request({
    url: '/captcha',
    method: 'get'
  })
}

